package com.cupdata.marathon.definition;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum OperUserRslt {
    O0000("0000","验证通过", ""),
    O0010("0010","注销用户", "100010"),
    O0020("0020","风控用户", "100020"),
    O0030("0030","尚未实名", "100030"),
    O0040("0040","尚未绑卡", "100040"),
    O0050("0050","非法用户", "100050"),
    O0090("0090","请求非法", "100090"),//（报文格式错、字段非法等）
    ;

    private String code;
    private String msg;
    private String downRslt;

    public static String getDownRslt(String code) {
        try {
            return valueOf("O" + code).getDownRslt();
        } catch (Exception e) {
            return "";
        }
    }
}
